﻿
using System;

namespace Pub
{
    public interface IADO
    {
        #region Methods

        bool CloseDB();

        int cmd1(string sql);

        int cmd2(string sql);

        int cmd2(string sql, System.Data.SqlClient.SqlParameter[] pars);

        int getNewID(string sTab, string sCol);

        bool OpenDB();

        bool OpenDB(string skey);

        System.Drawing.Image read_img(string sql, string col);

        void save_img(string tab, string par1, string col, System.Drawing.Image img);

        System.Data.DataSet sel1(string sql);

        void setParsCount(int i_count);

        #endregion Methods
    }
}